package com.crm.model.entity.customerManager;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerCompanyInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerCompanyInfoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCustomerCompanyInfoIdIsNull() {
            addCriterion("customer_company_info_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdIsNotNull() {
            addCriterion("customer_company_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdEqualTo(String value) {
            addCriterion("customer_company_info_id =", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdNotEqualTo(String value) {
            addCriterion("customer_company_info_id <>", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdGreaterThan(String value) {
            addCriterion("customer_company_info_id >", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_company_info_id >=", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdLessThan(String value) {
            addCriterion("customer_company_info_id <", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdLessThanOrEqualTo(String value) {
            addCriterion("customer_company_info_id <=", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdLike(String value) {
            addCriterion("customer_company_info_id like", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdNotLike(String value) {
            addCriterion("customer_company_info_id not like", value, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdIn(List<String> values) {
            addCriterion("customer_company_info_id in", values, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdNotIn(List<String> values) {
            addCriterion("customer_company_info_id not in", values, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdBetween(String value1, String value2) {
            addCriterion("customer_company_info_id between", value1, value2, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCustomerCompanyInfoIdNotBetween(String value1, String value2) {
            addCriterion("customer_company_info_id not between", value1, value2, "customerCompanyInfoId");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeIsNull() {
            addCriterion("company_income is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeIsNotNull() {
            addCriterion("company_income is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeEqualTo(String value) {
            addCriterion("company_income =", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeNotEqualTo(String value) {
            addCriterion("company_income <>", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeGreaterThan(String value) {
            addCriterion("company_income >", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeGreaterThanOrEqualTo(String value) {
            addCriterion("company_income >=", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeLessThan(String value) {
            addCriterion("company_income <", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeLessThanOrEqualTo(String value) {
            addCriterion("company_income <=", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeLike(String value) {
            addCriterion("company_income like", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeNotLike(String value) {
            addCriterion("company_income not like", value, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeIn(List<String> values) {
            addCriterion("company_income in", values, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeNotIn(List<String> values) {
            addCriterion("company_income not in", values, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeBetween(String value1, String value2) {
            addCriterion("company_income between", value1, value2, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyIncomeNotBetween(String value1, String value2) {
            addCriterion("company_income not between", value1, value2, "companyIncome");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberIsNull() {
            addCriterion("company_number is null");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberIsNotNull() {
            addCriterion("company_number is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberEqualTo(Integer value) {
            addCriterion("company_number =", value, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberNotEqualTo(Integer value) {
            addCriterion("company_number <>", value, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberGreaterThan(Integer value) {
            addCriterion("company_number >", value, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("company_number >=", value, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberLessThan(Integer value) {
            addCriterion("company_number <", value, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberLessThanOrEqualTo(Integer value) {
            addCriterion("company_number <=", value, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberIn(List<Integer> values) {
            addCriterion("company_number in", values, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberNotIn(List<Integer> values) {
            addCriterion("company_number not in", values, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberBetween(Integer value1, Integer value2) {
            addCriterion("company_number between", value1, value2, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andCompanyNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("company_number not between", value1, value2, "companyNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberIsNull() {
            addCriterion("product_service_number is null");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberIsNotNull() {
            addCriterion("product_service_number is not null");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberEqualTo(Integer value) {
            addCriterion("product_service_number =", value, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberNotEqualTo(Integer value) {
            addCriterion("product_service_number <>", value, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberGreaterThan(Integer value) {
            addCriterion("product_service_number >", value, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_service_number >=", value, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberLessThan(Integer value) {
            addCriterion("product_service_number <", value, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberLessThanOrEqualTo(Integer value) {
            addCriterion("product_service_number <=", value, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberIn(List<Integer> values) {
            addCriterion("product_service_number in", values, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberNotIn(List<Integer> values) {
            addCriterion("product_service_number not in", values, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberBetween(Integer value1, Integer value2) {
            addCriterion("product_service_number between", value1, value2, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andProductServiceNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("product_service_number not between", value1, value2, "productServiceNumber");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationIsNull() {
            addCriterion("financing_situation is null");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationIsNotNull() {
            addCriterion("financing_situation is not null");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationEqualTo(String value) {
            addCriterion("financing_situation =", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationNotEqualTo(String value) {
            addCriterion("financing_situation <>", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationGreaterThan(String value) {
            addCriterion("financing_situation >", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationGreaterThanOrEqualTo(String value) {
            addCriterion("financing_situation >=", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationLessThan(String value) {
            addCriterion("financing_situation <", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationLessThanOrEqualTo(String value) {
            addCriterion("financing_situation <=", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationLike(String value) {
            addCriterion("financing_situation like", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationNotLike(String value) {
            addCriterion("financing_situation not like", value, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationIn(List<String> values) {
            addCriterion("financing_situation in", values, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationNotIn(List<String> values) {
            addCriterion("financing_situation not in", values, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationBetween(String value1, String value2) {
            addCriterion("financing_situation between", value1, value2, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andFinancingSituationNotBetween(String value1, String value2) {
            addCriterion("financing_situation not between", value1, value2, "financingSituation");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyIsNull() {
            addCriterion("upstream_company is null");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyIsNotNull() {
            addCriterion("upstream_company is not null");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyEqualTo(String value) {
            addCriterion("upstream_company =", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyNotEqualTo(String value) {
            addCriterion("upstream_company <>", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyGreaterThan(String value) {
            addCriterion("upstream_company >", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("upstream_company >=", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyLessThan(String value) {
            addCriterion("upstream_company <", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyLessThanOrEqualTo(String value) {
            addCriterion("upstream_company <=", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyLike(String value) {
            addCriterion("upstream_company like", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyNotLike(String value) {
            addCriterion("upstream_company not like", value, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyIn(List<String> values) {
            addCriterion("upstream_company in", values, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyNotIn(List<String> values) {
            addCriterion("upstream_company not in", values, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyBetween(String value1, String value2) {
            addCriterion("upstream_company between", value1, value2, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andUpstreamCompanyNotBetween(String value1, String value2) {
            addCriterion("upstream_company not between", value1, value2, "upstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyIsNull() {
            addCriterion("downstream_company is null");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyIsNotNull() {
            addCriterion("downstream_company is not null");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyEqualTo(String value) {
            addCriterion("downstream_company =", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyNotEqualTo(String value) {
            addCriterion("downstream_company <>", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyGreaterThan(String value) {
            addCriterion("downstream_company >", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("downstream_company >=", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyLessThan(String value) {
            addCriterion("downstream_company <", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyLessThanOrEqualTo(String value) {
            addCriterion("downstream_company <=", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyLike(String value) {
            addCriterion("downstream_company like", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyNotLike(String value) {
            addCriterion("downstream_company not like", value, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyIn(List<String> values) {
            addCriterion("downstream_company in", values, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyNotIn(List<String> values) {
            addCriterion("downstream_company not in", values, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyBetween(String value1, String value2) {
            addCriterion("downstream_company between", value1, value2, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andDownstreamCompanyNotBetween(String value1, String value2) {
            addCriterion("downstream_company not between", value1, value2, "downstreamCompany");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(String value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(String value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(String value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(String value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(String value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLike(String value) {
            addCriterion("customer_id like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotLike(String value) {
            addCriterion("customer_id not like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<String> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<String> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(String value1, String value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(String value1, String value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}